<html lang="fr"><head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://getbootstrap.com/favicon.ico">

    <title>Signin Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo $view['assets']->getUrl('bootstrap/css/bootstrap.min.css') ?>" type="text/css" rel="stylesheet">
    <link href="<?php echo $view['assets']->getUrl('font-awesome/css/font-awesome.css') ?>" type="text/css" rel="stylesheet"  >

    <!-- Custom styles for this template -->
    <link href="<?php echo $view['assets']->getUrl('css/admin-signin.css') ?>" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="signin.css" rel="stylesheet">
  </head>

  <body>

    <div class="container">
<?php
        $types = array('warning', 'info', 'danger', 'success');
        if($session)
        {
            foreach ($types as $type) 
            {
                foreach ($session->getFlashBag()->get($type, array()) as $message) 
                {
        ?>
                <div class='alert alert-<?php echo $type  ?>'>
                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
                    <?php echo $message ?>
                </div>
        <?php
                }
            }
        }
    ?>
      <form action="<?php echo $view['router']->generate('admin_connexion') ?>" class="form-signin" method="POST" >
        <h2 class="form-signin-heading">Connexion panel administrateur</h2>
        <label for="inputEmail" class="sr-only">Adresse Email</label>
        <input name="email" type="email" id="inputEmail" class="form-control" placeholder="Email address" required="" autofocus="">
        <label for="inputPassword" class="sr-only">Mot de passe</label>
        <input name="password" type="password" id="inputPassword" class="form-control" placeholder="Password" required="">
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Se souvenir de moi
          </label>
        </div>
        <input class="btn btn-lg btn-primary btn-block" type="submit" value="Se connecter">
      </form>
        

    </div> <!-- /container -->

</body>
</html>